/* interface IUser<T> {
  name: string
  age: T
}

const u1: IUser<number> = {
  name: '尼古拉斯凯奇',
  age: 18,
}

const u2: IUser<string> = {
  name: '尼古拉斯凯奇',
  age: '18',
} */

/* interface IdFunc<Type> {
  id: (value: Type) => Type // 接收什么类型，返回什么类型
  ids: () => Type[] // 返回值是，根据接收到的类型组成的数组
}

const o: IdFunc<string> = {
  id: (str: string) => str,
  ids: () => ['a', 'c'],
} */

// const arr: number[] = [1, 3, 5]
const arr: Array<number> = [1, 3, 5]

export {}
